<%@ page import="br.uefs.cedoc.entidades.*"  %>
<%@ page import="br.uefs.cedoc.controle.*"  %>
<%@ page import="br.uefs.cedoc.db.*"  %>
<%@ page import="br.uefs.cedoc.util.ConfigWeb"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"  pageEncoding="ISO-8859-1"%>
<%@ page import="br.uefs.cedoc.util.ConfigWeb"%>
<jsp:useBean id="estante" class="br.uefs.cedoc.entidades.EstanteBean" />
<%
EstanteBean[]  estantes = ( EstanteBean[] ) request.getAttribute("estante");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script language="JavaScript">
function setCmd(value){
	document.menu.cmd.value = value;
}
</script>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Abrir um Caixa</title>
</head>
<body>
<form name="menu" method="get" action="<%=ConfigWeb.BASE_PATH%>/docSrv">
  <p>Caixa : 
    <input type="text" name="caixa">
  </p>
  <p>Descri&ccedil;&atilde;o: 
    <input type="text" name="descricao">
  </p>
  <p>Estante:

    <select name="idestante" size="1">
           <%  for (int i = 0; i < estantes.length; i++) {
             estante = estantes[i];
            %>
      <option><%=estante.getIdEstante()%></option>
<% } %>
    </select>
  </p>
  <p> 
    <input type="submit" name="Submit" value="Enviar" onClick="setCmd('do-add-caixa')">
  </p>
  <p>&nbsp;</p>
  <p>
    <input type="hidden" name="token" value="<%= request.getAttribute("token")%>">
    <input type="hidden" name="cmd" value="">
  </p>
</form>
</body>
</html>